package com.wwt.blog.vo.param;

import lombok.Data;

@Data
public class PageParams {
    private  int page;  //当前页数
    private  int pageSize;   //每页显示的数量

    //在点击标签或者分类后查询相关文章
    private Long categoryId;
    private Long tagId;

    //用于文章归档用
    private String year;
    private String month;

    public String getMonth() {
        if (month != null && month.length() == 1)
            return "0" + month;
        return month;
    }
}
